package com.lyl.novel.model.entity;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * (Site)表实体类
 *
 * @author Mr Luo
 * @since 2022-08-22 16:10:24
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("site")
public class Site implements Serializable  {
    private static final long serialVersionUID = 229368761196017488L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 网站名称
     */
    @TableField("name")
    private String name;

    /**
     * 网站url
     */
    @TableField("url")
    private String url;

    /**
     * 网站备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 0: 正常, 1：锁定
     */
    @TableField("state")
    private Integer state;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private String updateTime;

    /**
     * 删除标记
     */
    @TableField("is_deleted")
    @TableLogic
    private Boolean isDeleted;

}

